package com.example.other.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.other.domain.Hospital;
import com.example.other.domain.VO.RankVO;
import com.example.other.service.HospitalService;
import com.example.other.mapper.HospitalMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Limhuang
* @description 针对表【hospital】的数据库操作Service实现
* @createDate 2024-07-03 10:15:00
*/
@Service
public class HospitalServiceImpl extends ServiceImpl<HospitalMapper, Hospital>
    implements HospitalService{
    @Autowired
    private HospitalMapper hospitalMapper;

    @Override
    public List<Hospital> getList() {
        return hospitalMapper.selectList(null);
    }

    @Override
    public Hospital getById(int id) {
        return hospitalMapper.selectById(id);
    }

    @Override
    public Hospital add(Hospital hospital) {
        return null;
    }

    @Override
    public Hospital update(Hospital hospital) {
        return null;
    }

    @Override
    public Hospital delete(int id) {
        return null;
    }

    @Override
    public List<RankVO> getHospitalRank() {

        return hospitalMapper.getHospitalRank();
    }
}




